home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_05
/
1n05046a
< prev
next >
Wrap
Text File
|
1990-09-04
|
374b
|
25 lines
int x; /* file scope, external linkage */
static int y; /* file scope
int f1(); /* file scope, external linkage */
static void f2(); /* file scope */
int f1()
{
int i, res = 0; /* local scope */
for (i = 1; i <= 10; ++i)
res += i;
return res;
}
static void f2()
{
goto comehere;
comehere: /* function scope */
}